package com.dl.waimai;

/**
 * Time    : 2023/3/23 9:16
 * Author  : 王摇摆
 * FileName: PizzaStoreProxy.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class PizzaStoreProxy {
    private PizzaStore pizzaStore;

    public void setPizzaStore(PizzaStore pizzaStore) {
        this.pizzaStore = pizzaStore;
    }

    public void orderPizza() {
        pizzaStore.takeOrder();
        pizzaStore.prepareSource();
        pizzaStore.cookPizza();
        pizzaStore.packPizza();
        pizzaStore.delivertyPizza();
    }
}
